#ifndef BOXDEMO_H
#define BOXDEMO_H
#include<QPainter>
#include<QEvent>
#include<QString>
#include<QImage>
#include<QRect>
#include<QkeyEvent>
class Boxgame
{
public:
    Boxgame();
    void ininMap();
    void drawmap(QPainter* pDraw);
    void keydown(QKeyEvent* event);
    int getrow();
    int getcols();
    bool gameover();
protected:
    int map[8][8];
};

#endif // BOXDEMO_H
